package com.sea.supply.service;


import com.sea.supply.entity.Supplier;
import com.sea.supply.entity.SupplierSku;

import java.io.InputStream;
import java.util.List;

public interface SupplierSkuService {

    /**
     * 多条件查询
     * @param supplierSku
     * @return
     */
    List<SupplierSku> findByCnd(SupplierSku supplierSku);

    /**
     * 新增
     * @param supplierSku
     * @return
     */
    Integer save(SupplierSku supplierSku);

    /**
     * 导入SKU
     * @param inputStream
     * @param fileName
     * @return
     * @throws Exception
     */
    void importSku(InputStream inputStream, String fileName) throws Exception;

    /**
     *
     * @param supplierSku
     * @return
     */
    SupplierSku findBySkuChannel(SupplierSku supplierSku);

    /**
     * 更新
     * @param supplierSku
     * @return
     */
    Integer usave(SupplierSku supplierSku);

    Integer delete(Integer id);

    Integer clearSupplierSku();
}
